//
//  WHApi.h
//  WebHUD
//
//  Created by Stefan Eletzhofer on 02.12.08.
//  Copyright 2008 __MyCompanyName__. All rights reserved.
//

#import <Cocoa/Cocoa.h>
#import <WebKit/WebKit.h>

@interface WHApi : NSObject {
  WebFrame  *masterWebFrame;
}

@property(retain)   WebFrame  *masterWebFrame;

// initializer
+ (id)make;

// API exposed to JS
- (void)reloadMainFrame;
- (id)mainFrameDOM;

- (void)loadUrlInMainFrame: (NSString *)url;

// WebScripting informal Protocol
+ (BOOL)isSelectorExcludedFromWebScript:(SEL)aSelector;
+ (BOOL)isKeyExcludedFromWebScript:(const char *)name;
- (id)invokeUndefinedMethodFromWebScript:(NSString *)name withArguments:(NSArray *)args;

@end

/*vim:ts=4:sw=4:expandtab:*/
